insert into [ION_Network].[dbo].PL_TOU_PriceBoard(StoreName, TimeOfUse_ID, Price)
select distinct dbo.GetStoreName(D.Name) StoreName, A.TimeOfUse_ID, 0
from [ION_Data].[dbo].Source D
	join [ION_Network].[dbo].Device E on D.Name = E.Name
	join [ION_Network].[dbo].Port F on F.ID = E.PortID
	join [ION_Network].[dbo].Gate G on G.ID = F.GateID
	cross join [ION_Network].[dbo].PL_TOU_TimeOfUse A
	
exec dbo.GetListTimeOfUse